package com.tensquare.friend.client;

import entity.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

@FeignClient("tensquare-user")
public interface UserClient {

    //1.更新粉丝数
    @PostMapping("/user/incfans/{userId}/{num}")
    Result incfans(@PathVariable("userId") String userId,@PathVariable("num") int num);

    //2.更新关注数
    @PostMapping("/user/incfollow/{userId}/{num}")
    Result incfollow(@PathVariable("userId") String userId,@PathVariable("num") int num);
}
